﻿using FriendStar.Application.VBaseData;
using FriendStar.Code;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace FriendStar.Web.Areas.VBaseData.Controllers
{
    public class V_CYK_12_MX_StoLJKListAccoController : ControllerBase
    {
        private V_CYK_12_MX_StoLJKListAccoApp v_cyk_12_MX_StoLJKListAccoApp = new V_CYK_12_MX_StoLJKListAccoApp();
        public ActionResult GetInStockInfos(Pagination pagination, string companyno, string productionno, string fcurdate, string fcredence, string faccountDate)
        {
            var data = new
            {
                rows = v_cyk_12_MX_StoLJKListAccoApp.GetList(pagination, companyno, productionno, fcurdate, fcredence, faccountDate),
                total = pagination.total,
                page = pagination.page,
                records = pagination.records
            };
            return Content(data.ToJson());
        }
    }
}
